package com.bloodbear.ehealth;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import android.R.integer;


public class TextAnalizator {
	public static final Pattern pattern = Pattern.compile("([eE])([ ]|[-]|)[\\d]{3,4}");
	public static final Pattern pattern2 = Pattern.compile("[\\d]{3,4}");
    
	public static  ArrayList<String> doMatchAllM(String word) {
        ArrayList<String> output = new ArrayList<String>();

        Matcher matcher = pattern.matcher(word);
      	  while (matcher.find())
      	  {
      		Matcher matcher2 = pattern2.matcher(matcher.group());
      		if (matcher2.find())
      		{
      			output.add(matcher2.group());
      		}
      	  }
        return output;
	}
	
}
